﻿using System.Web.Mvc;
using LogikBug.ModularMvc.Navigation;

namespace LogikBug.ModularMvc
{
	public abstract class VisualModule : Module, IVisualModule
	{
		#region Properties

		public byte MenuDisplayOrder { get; set; }

		#endregion

		#region Methods

		public virtual MenuItemCollection GetMenu(ViewContext viewContext)
		{
			return GetMenu(viewContext, MenuType.Main);
		}

		public abstract MenuItemCollection GetMenu(ViewContext viewContext, MenuType menuType);

		protected internal override void DisposeResources()
		{

		}

		#endregion
	}
}